package cc.rengu.redp.system.service;

import cc.rengu.redp.common.domain.QueryRequest;
import cc.rengu.redp.system.domain.UserMessage;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author System
 */
public interface UserMessageService extends IService<UserMessage> {

    IPage<UserMessage> findAllMessage(String[] range, String sourceType, Long userId, QueryRequest queryRequest);

    Integer getUnreadMessageCount(Long userId);

    void read(Long id);
}
